﻿<ccl:CustomChromeWindow x:Class="MediaAssistant.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:ccl="clr-namespace:CustomChromeLibrary;assembly=CustomChromeLibrary"
        xmlns:shell="clr-namespace:Microsoft.Windows.Shell;assembly=Microsoft.Windows.Shell"
        Title="{Binding Title}" Height="700" Width="1024" WindowState="Maximized"
        WindowStartupLocation="CenterScreen">
  <shell:WindowChrome.WindowChrome>
    <shell:WindowChrome
            ResizeBorderThickness="6"
            CaptionHeight="10"
            GlassFrameThickness="0">
    </shell:WindowChrome>
  </shell:WindowChrome.WindowChrome>
  
  <Window.Resources>
    <ResourceDictionary>
      <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="Resources\GlassButton.xaml"/>
        <ResourceDictionary Source="Resources\GlassIcon.xaml"/>
      </ResourceDictionary.MergedDictionaries>
    </ResourceDictionary>
  </Window.Resources>

  <Grid>
    <Border BorderThickness="3" BorderBrush="{StaticResource DarkBackground}" Background="{StaticResource HeaderGradientBackground}"/>
    <ContentControl Content="{Binding ShellPresenter.View}"/>
    <ccl:CaptionButtons/>
  </Grid>
</ccl:CustomChromeWindow>
